package application 
{
	import application.controller.StartupCommand;
	import flash.display.Stage;
	import org.puremvc.as3.patterns.facade.Facade;
	
	/**
	 * ...
	 * @author QinYuanLong
	 */
	public class ApplicationFacade extends Facade 
	{
		public static const STARTUP:String = "startup";
		public static const LOAD_UI:String = "load_ui";
		public static const LOAD_UI_COMPLETE:String = "load_ui_complete";
		public static const SHOW_MENU:String = "show_menu";
		
		public static function getInstance():ApplicationFacade
		{
			if (instance == null)
				instance = new ApplicationFacade();
			return instance as ApplicationFacade;
		}
		
		override protected function initializeController():void
		{
			super.initializeController();
			registerCommand(STARTUP, StartupCommand);
		}
		
		public function startup(app:Object):void
		{
			sendNotification(STARTUP,app);
		}
		
	}

}